package com.hitsoysauce.l0116.exception;


public class ExceptionTest {
	public static void main(String[] args) throws Exception {
		int a = 9;
		int b = 1;
		
		int c = 0;
		
		try {
			c = a/b;
			
		} catch(ArithmeticException e) {
			throw e;
		} finally {
			
			System.out.println("finally");
		}
		
		System.out.println("helloWorld");
		System.out.println(c);
		
		getReturnValue();
	}
	
	private static void getReturnValue() throws Exception {
		
		String s = null;
		
		try {
			s.length();
			
		} catch (Exception e) {
			
			e.printStackTrace();
		}
		
	}
}
